package cn.car91.bean;

import java.io.Serializable;

import com.lidroid.xutils.db.annotation.Foreign;
import com.lidroid.xutils.db.annotation.Id;
import com.lidroid.xutils.db.annotation.Table;


/**
 * 市类
 *
 * @author 周海刚
 * @Date 2014.9.11
 */
@Table(name = "tab_city")
public class City implements Serializable {
    @Id(column = "cid")
    private int cid;    //数据库主键
    private String name;    //市名
    private String position;    //默认坐标
    @Foreign(column = "pid", foreign = "pid")
    private Province province;    //所属省份
    private Boolean municipality = false;    //直辖市标志，默认非直辖市

    public int getCid() {
        return cid;
    }

    public void setCid(int cid) {
        this.cid = cid;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getPosition() {
        return position;
    }

    public void setPosition(String position) {
        this.position = position;
    }

    public Province getProvince() {
        return province;
    }

    public void setProvince(Province province) {
        this.province = province;
    }

    public Boolean getMunicipality() {
        return municipality;
    }

    public void setMunicipality(Boolean municipality) {
        this.municipality = municipality;
    }
}
